package com.bishe.cyh.controller;

import com.bishe.cyh.mode.Result;
import com.bishe.cyh.service.TaskCatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Poppin
 * @Date: 2022/3/2 23:37
 * @Version: 1.0
 */
@RestController
@RequestMapping("/api")
public class TaskCatController {

    private TaskCatService taskCatService;

    @Autowired
    public void setTaskCatService(TaskCatService taskCatService) {
        this.taskCatService = taskCatService;
    }
    @GetMapping("/ifdata")
    public Result Ifdata(@RequestParam("id")String id){
        return taskCatService.ifData(id);
    }
    @GetMapping("/CatData")
    public Result Catdata(@RequestParam("id")String id){
        return taskCatService.CatData(id);
    }
}
